Skip to main content

All Questions

Tagged with
1vote
1answer
2kviews

sudo ssh: load pubkey Permission denied

user1 needs to be able to su to user2 on host1, and then ssh to host2 using public key authentication. The key is in /home/user2/.ssh/id_rsa on host1. It works with sudo -s... [user1@host1] $ sudo -u ...
user14473331's user avatar
0votes
1answer
51views

How to run installation scripts without allowing shutdown/reboot/hibernate

I would like to run installation scripts on a remote server through SSH, but it is important that the server does not shutdown/reboot/hibernate. If I run a script using sudo, how can I prevent the ...
Spencer's user avatar
1vote
1answer
8kviews

Disable su and sudo access for users

I have created a couple of users who use their SSH Keys to log in on a server. I don't want any user to have root access, i.e, no user should be able to do sudo su or su - another user. When I check ...
Siddarth Hegde's user avatar
2votes
2answers
355views

Setting up users for ubuntu for ssh connection

I have created a new Ubuntu server and in root user, I created a new user. The steps I followed: sudo adduser tom sudo su - tom mkdir .ssh chmod 700 .ssh touch .ssh/authorized_keys chmod 600 .ssh/...
senty's user avatar
5votes
2answers
19kviews

How to edit /etc/hosts without sudo?

I have a machine that I can only access using SSH. I was messing with the hostnames, and now it says: ssh: unable to resolve hostname I know how to fix it in /etc/hosts. Problem is, I need sudo ...
evamvid's user avatar
3votes
1answer
17kviews

How do I grant someone else access to my linux server

If you administer a Linux server, what steps do you take to properly grant someone else access? Assuming they will log in over ssh, don't already have an account, and will need root access. (...
spuder's user avatar
  • 18.6k

close